Optimal. Leaf size=62 \[ -\frac{3 \tan ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{4 b}+\frac{\sec ^2(a+b x)}{2 b \sqrt{\csc (a+b x)}}+\frac{3 \tanh ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{4 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0532984, antiderivative size = 62, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.316, Rules used = {2621, 288, 329, 298, 203, 206} \[ -\frac{3 \tan ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{4 b}+\frac{\sec ^2(a+b x)}{2 b \sqrt{\csc (a+b x)}}+\frac{3 \tanh ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2621
Rule 288
Rule 329
Rule 298
Rule 203
Rule 206
Rubi steps
\begin{align*} \int \sqrt{\csc (a+b x)} \sec ^3(a+b x) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{x^{5/2}}{\left (-1+x^2\right )^2} \, dx,x,\csc (a+b x)\right )}{b}\\ &=\frac{\sec ^2(a+b x)}{2 b \sqrt{\csc (a+b x)}}-\frac{3 \operatorname{Subst}\left (\int \frac{\sqrt{x}}{-1+x^2} \, dx,x,\csc (a+b x)\right )}{4 b}\\ &=\frac{\sec ^2(a+b x)}{2 b \sqrt{\csc (a+b x)}}-\frac{3 \operatorname{Subst}\left (\int \frac{x^2}{-1+x^4} \, dx,x,\sqrt{\csc (a+b x)}\right )}{2 b}\\ &=\frac{\sec ^2(a+b x)}{2 b \sqrt{\csc (a+b x)}}+\frac{3 \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\sqrt{\csc (a+b x)}\right )}{4 b}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\sqrt{\csc (a+b x)}\right )}{4 b}\\ &=-\frac{3 \tan ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{4 b}+\frac{3 \tanh ^{-1}\left (\sqrt{\csc (a+b x)}\right )}{4 b}+\frac{\sec ^2(a+b x)}{2 b \sqrt{\csc (a+b x)}}\\ \end{align*}
Mathematica [A] time = 0.113689, size = 73, normalized size = 1.18 \[ \frac{\sqrt{\sin (a+b x)} \sqrt{\csc (a+b x)} \left (2 \sqrt{\sin (a+b x)} \sec ^2(a+b x)+3 \left (\tan ^{-1}\left (\sqrt{\sin (a+b x)}\right )+\tanh ^{-1}\left (\sqrt{\sin (a+b x)}\right )\right )\right )}{4 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 1.51, size = 73, normalized size = 1.2 \begin{align*}{\frac{1}{8\, \left ( \cos \left ( bx+a \right ) \right ) ^{2}b} \left ( - \left ( -3\,\ln \left ( \sqrt{\sin \left ( bx+a \right ) }+1 \right ) +3\,\ln \left ( \sqrt{\sin \left ( bx+a \right ) }-1 \right ) -6\,\arctan \left ( \sqrt{\sin \left ( bx+a \right ) } \right ) \right ) \left ( \cos \left ( bx+a \right ) \right ) ^{2}+4\,\sqrt{\sin \left ( bx+a \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.4409, size = 88, normalized size = 1.42 \begin{align*} \frac{\frac{4}{{\left (\frac{1}{\sin \left (b x + a\right )^{2}} - 1\right )} \sin \left (b x + a\right )^{\frac{3}{2}}} - 6 \, \arctan \left (\frac{1}{\sqrt{\sin \left (b x + a\right )}}\right ) + 3 \, \log \left (\frac{1}{\sqrt{\sin \left (b x + a\right )}} + 1\right ) - 3 \, \log \left (\frac{1}{\sqrt{\sin \left (b x + a\right )}} - 1\right )}{8 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.29247, size = 373, normalized size = 6.02 \begin{align*} \frac{6 \, \arctan \left (\frac{\sin \left (b x + a\right ) - 1}{2 \, \sqrt{\sin \left (b x + a\right )}}\right ) \cos \left (b x + a\right )^{2} + 3 \, \cos \left (b x + a\right )^{2} \log \left (\frac{\cos \left (b x + a\right )^{2} + \frac{4 \,{\left (\cos \left (b x + a\right )^{2} - \sin \left (b x + a\right ) - 1\right )}}{\sqrt{\sin \left (b x + a\right )}} - 6 \, \sin \left (b x + a\right ) - 2}{\cos \left (b x + a\right )^{2} + 2 \, \sin \left (b x + a\right ) - 2}\right ) + 8 \, \sqrt{\sin \left (b x + a\right )}}{16 \, b \cos \left (b x + a\right )^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{\csc{\left (a + b x \right )}} \sec ^{3}{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.26178, size = 99, normalized size = 1.6 \begin{align*} -\frac{{\left (\frac{4 \, \sqrt{\sin \left (b x + a\right )}}{\sin \left (b x + a\right )^{2} - 1} - 6 \, \arctan \left (\sqrt{\sin \left (b x + a\right )}\right ) - 3 \, \log \left (\sqrt{\sin \left (b x + a\right )} + 1\right ) + 3 \, \log \left ({\left | \sqrt{\sin \left (b x + a\right )} - 1 \right |}\right )\right )} \mathrm{sgn}\left (\sin \left (b x + a\right )\right )}{8 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]